/**
 * @date 2006-7-10
 */

package org.nanhill.moo.domain;

/**
 * @author alin [xalinx at gmail dot com]
 * @date 2006-7-10
 */
public class Tag {

	/**
	 * Tag id.
	 */
	private long id;

	/**
	 * Tag name.
	 */
	private String name;

	/**
	 * The hot value for this user tag.
	 */
	private int userHot;

	/**
	 * The hot value for this favor tag.
	 */
	private int favorHot;

	public int getFavorHot() {
		return favorHot;
	}

	public void setFavorHot(int favorTag) {
		this.favorHot = favorTag;
	}

	public int getUserHot() {
		return userHot;
	}

	public void setUserHot(int userNum) {
		this.userHot = userNum;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public Tag(String name) {
		this.name = name;
	}

	public Tag() {
	}

	@Override
	public boolean equals(Object other) {
		if (null == other)
			return false;
		if (other == this || other instanceof Tag)
			return true;
		final Tag tag = (Tag) other;
		return null == name ? null == tag.getName() : name
				.equals(tag.getName());
	}

}
